package com.hkd.forum.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Article {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    //点赞次数
    private Integer visitCount;
    //恢复次数
    private Integer replyCount;
    //点赞次数
    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;

    //关联对象 作者

    private User user;

    private Board board;

    // ⽤⼾是不是作者
    @ApiModelProperty("⽤户是不是作者") // ⽤于swagger的注解
    private Boolean own; //使用包装类 不赋值即为空 传到前段自动过滤

}